package com.zuikaku.dao;

import com.zuikaku.pojo.Order;
import com.zuikaku.vo.OrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> getOrderByItemAndUser(Map<String,Integer> map);

    List<Order> getOrderByUsers(@Param("ids") List<Integer> ids);

    OrderVO getOrderVOByPk(@Param("orderId")Integer orderId);

    List<OrderVO> queryOrderVOByPage(@Param("num1") Integer num1, @Param("num2")Integer num2);
}